﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Advisee/AdviseUPAdvisee.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Advisee_index" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Header" Runat="Server">
<!-- Header Information -->
    <title>AdviseUP - Welcome!</title>
    <style type="text/css">
        .listCell {border:1px solid Black;} /* boxes for LV */
        .courseCSS {background-color:#FFFFFF; color:#000000; border:1px solid Black; width:80%; height:80px; margin-left:10%; text-align:center;} /* course box for GV */
        .electiveCSS {background-color:#FFFFFF; color:#000000; border:1px solid Black; width:80%; height:100px; margin-left:10%; text-align:center;} /* elective box for GV */
        .courseLabelCSS {background-color:#B3D9FF; color:#000000; border-bottom:1px solid Black; width:100%; height:55px; text-align:center; font-family:Sans-Serif; font-size:12px;} /* elective box for GV */
        .courseFillerCSS {width:80%; height:100px; margin-left:10%;} /* padding for semester labels for GV */
        .semesterCSS01 {float:left; margin-left:1%; background-color:#DDDDDD; color:#DDDDDD; border:1px solid Black; width:15%; height:100%;} /* semester region one for GV */
        .semesterCSS25 {float:left; margin-left:4%; background-color:#DDDDDD; color:#DDDDDD; border:1px solid Black; width:15%; height:100%;} /* semester regions two and five for GV */
        .semesterCSS34 {float:left; margin-left:5%; background-color:#DDDDDD; color:#DDDDDD; border:1px solid Black; width:15%; height:100%;} /* semester regions three and four for GV */
        .labelCSS {text-align:center;}  /* semester labels for GV */
        .precoreqViolationsCSS{background-color:#F15E22; color:#000000; border-bottom:1px solid Black; width:100%; height:55px; text-align:center; font-family:Sans-Serif; font-size:12px;}
        .courseFailCSS{background-color:#AB1E38; color:#FFFFFF; border-bottom:1px solid Black; width:100%; height:55px; text-align:center; font-family:Sans-Serif; font-size:12px;}
        .courseBorderlineCSS{background-color:#FCB315; color:#000000; border-bottom:1px solid Black; width:100%; height:55px; text-align:center; font-family:Sans-Serif; font-size:12px;}
        .courseNullCSS{background-color:#CACBC8; color:#000000; border-bottom:1px solid Black; width:100%; height:55px; text-align:center; font-family:Sans-Serif; font-size:12px;}
        .courseMissingCSS{background-color:#727075; color:#FFFFFF; border-bottom:1px solid Black; width:100%; height:55px; text-align:center; font-family:Sans-Serif; font-size:12px;}
        .courseWrongCSS{background-color:#000000; color:#FFFFFF; border-bottom:1px solid Black; width:100%; height:55px; text-align:center; font-family:Sans-Serif; font-size:12px;}
    </style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="AdvisorInfo" Runat="Server">
<!-- The section of the page that contains the Advisor Info button -->
    <asp:Button ID="InfoButton" Text="Advisor Info" runat="server" OnClick="InfoButton_Click" />
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="BoxHeader" Runat="Server">
<!-- This section of the page is the header of the main box -->
    <asp:Label ID="HeaderText" runat="server">**** - ****</asp:Label> 
    <div style="float:right;">
        <asp:Button ID="LeftButton" Text="<--" runat="server" onclick="LeftButton_Click" />
        <asp:Button ID="RightButton" Text="-->" runat="server" onclick="RightButton_Click" />
    </div>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="MainBox" Runat="Server">
<!-- This section of the page is the main box -->
<!-- Not all elements of the main box are enabled at the same time -->

    <!-- ***Uninitialized View*** -->
    <asp:Label ID="UninitBoxText" runat="server">Your schedule has not yet been initialized. Please see your advisor.</asp:Label>
    <!-- ***End Uninitialized View*** -->

    <!-- ***Graphical View*** -->
    <!-- JavaScript files used on page -->
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
        <Scripts>
            <asp:ScriptReference Name="PreviewScript.js" Assembly="Microsoft.Web.Preview" />
            <asp:ScriptReference Name="PreviewDragDrop.js" Assembly="Microsoft.Web.Preview" />
            <asp:ScriptReference Path="~/Scripts/DragDrop.js" />
            <asp:ScriptReference Path="~/Scripts/UnselectableText.js" />
        </Scripts>
    </asp:ScriptManager>
    <!-- A container for JavaScript that initializes courses and semesters -->
    <asp:Literal ID="JavaScriptPageLoad" runat="server"></asp:Literal>
    <!-- The panel that contains all the semester regions with default labels -->
    <span>
    <asp:Panel ID="GraphicalViewPanel" runat="server" Width="100%" Height="94%" Visible="true" Enabled="true" ScrollBars="Vertical">
        <asp:Panel ID="SemesterRegion1" runat="server" CssClass="semesterCSS01">
            <center><asp:TextBox ID="SemesterLabel1" runat="server" Enabled="false" BorderStyle="None" Width="90%" CssClass="labelCSS">Fall 1</asp:TextBox>
            <asp:TextBox ID="SemesterCreditsLabel1" runat="server" Enabled="false" BorderStyle="None" Width="90%" CssClass="labelCSS">Credits: 0</asp:TextBox>
            <span id="SemMove1">Moving...</span></center>
        </asp:Panel>
        <asp:Panel ID="SemesterRegion2" runat="server" CssClass="semesterCSS25">
            <center><asp:TextBox ID="SemesterLabel2" runat="server" Enabled="false" BorderStyle="None" Width="90%" CssClass="labelCSS">Spring 2</asp:TextBox>
            <asp:TextBox ID="SemesterCreditsLabel2" runat="server" Enabled="false" BorderStyle="None" Width="90%" CssClass="labelCSS">Credits: 0</asp:TextBox>
            <span id="SemMove2">Moving...</span></center>
        </asp:Panel>
        <asp:Panel ID="SemesterRegion3" runat="server" CssClass="semesterCSS34">
            <center><asp:TextBox ID="SemesterLabel3" runat="server" Enabled="false" BorderStyle="None" Width="90%" CssClass="labelCSS">Summer 2</asp:TextBox>
            <asp:TextBox ID="SemesterCreditsLabel3" runat="server" Enabled="false" BorderStyle="None" Width="90%" CssClass="labelCSS">Credits: 0</asp:TextBox>
            <span id="SemMove3">Moving...</span></center>
        </asp:Panel>
        <asp:Panel ID="SemesterRegion4" runat="server" CssClass="semesterCSS34">
            <center><asp:TextBox ID="SemesterLabel4" runat="server" Enabled="false" BorderStyle="None" Width="90%" CssClass="labelCSS">Fall 2</asp:TextBox>
            <asp:TextBox ID="SemesterCreditsLabel4" runat="server" Enabled="false" BorderStyle="None" Width="90%" CssClass="labelCSS">Credits: 0</asp:TextBox>
            <span id="SemMove4">Moving...</span></center>
        </asp:Panel>
        <asp:Panel ID="SemesterRegion5" runat="server" CssClass="semesterCSS25">
            <center><asp:TextBox ID="SemesterLabel5" runat="server" Enabled="false" BorderStyle="None" Width="90%" CssClass="labelCSS">Spring 3</asp:TextBox>
            <asp:TextBox ID="SemesterCreditsLabel5" runat="server" Enabled="false" BorderStyle="None" Width="90%" CssClass="labelCSS">Credits: 0</asp:TextBox>
            <span id="SemMove5">Moving...</span></center>
        </asp:Panel>
    </asp:Panel>
    </span>
    <!-- ***End Graphical View*** -->

    <!-- ***List View*** -->
    <!-- This is the panel that contains the table that displays all the courses in LV -->
    <asp:Panel ID="ListViewPanel" runat="server" Width="100%" Height="80%" ScrollBars="Vertical" Visible="false" Enabled="false">
        <asp:Table ID="ListViewCourseTable" runat="server" Width="100%"></asp:Table> <!-- Contains radio buttons for each course -->
        <asp:Label ID="ListViewSelectedCourse" runat="server" Visible="false"></asp:Label> <!-- Placeholder for the selected course radio button -->
    </asp:Panel>
    <!-- The table at the bottom of LV that contains all options for moving courses -->
    <asp:Table ID="ListViewOptionsTable" runat="server" Width="100%" Visible="false" Enabled="false">
        <asp:TableRow><asp:TableCell>
            <!-- The header contains text and course info button -->
            <div style="margin-left:-3px; border-style:solid; border-color:#444444; width:100.5%; border-left-width:0px; border-right-width:0px; background-color:#BBBBBB; height:24px;">
                <asp:Label ID="ListViewHeader" runat="server">Move Selected Course</asp:Label>
             <div style="float:right;"><asp:Button ID="ListInfoButton" Text="View Selected Course Info" runat="server" OnClick="CourseInfoButton_Click"/></div>
            </div>
        </asp:TableCell></asp:TableRow>
        <asp:TableRow><asp:TableCell>
            <!-- The body contains dropdowns and a button for moving the selected course in a schedule -->
            Semester: <asp:DropDownList ID="MoveSemesterList" runat="server">
                <asp:ListItem>Spring</asp:ListItem>
                <asp:ListItem>Summer</asp:ListItem>
                <asp:ListItem>Fall</asp:ListItem>
            </asp:DropDownList>
            Year: <asp:DropDownList ID="MoveYearList" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ChangeDisplayedSemester" OnLoad="ChangeDisplayedSemester"></asp:DropDownList> <!-- YearList is dynamically populated -->
            &nbsp;<asp:Button ID="MoveCourseButton" Text="Move Course" runat="server" OnClick="MoveCourseButton_Click"/>
        </asp:TableCell></asp:TableRow> 
    </asp:Table>
    <!-- ***End List View*** -->
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="LowerLeftButtons" Runat="Server">
<!-- This section of the page contains the lower left buttons -->
    <asp:Button ID="LogButton" Text="View Log" runat="server" onclick="LogButton_Click" /><br />
    <asp:Button ID="NotesButton" Text="View/Add Notes" runat="server" onclick="NotesButton_Click" />
    <td style="width:100%;">
        <div style="text-align:left;margin-top:10px;">
            <div style="display:block;margin-bottom:10px;height:20px;">
                <div style="text-align:center;font-weight:bolder;border-top:1px Black solid;border-bottom:1px Black solid;">Color Key</div>
            </div>
            <div style="display:block;margin-bottom:10px;height:30px;">
                <div style="border: 1px black solid;background-color:#B3D9FF;width:30px;height:30px;float:left;margin-right:5px;"></div>No Error
            </div>
            <div style="display:block;margin-bottom:10px;height:30px;">
                <div style="border: 1px black solid;background-color:#FCB315;width:30px;height:30px;float:left;margin-right:5px;"></div>Low Passing Grade (D- to D+)
            </div>
            <div style="display:block;margin-bottom:10px;height:30px;">
                <div style="border: 1px black solid;background-color:#AB1E38;width:30px;height:30px;float:left;margin-right:5px;"></div>Failing Grade (F)
            </div>
            <div style="display:block;margin-bottom:10px;height:30px;">
                <div style="border: 1px black solid;background-color:#F15E22;width:30px;height:30px;float:left;margin-right:5px;"></div>Prereq/Coreq Not Satisfied
            </div>
            <div style="display:block;margin-bottom:10px;height:30px;">
                <div style="border: 1px black solid;background-color:#CACBC8;width:30px;height:30px;float:left;margin-right:5px;"></div>No Grade recorded in banner
            </div>
            <div style="display:block;margin-bottom:10px;height:30px;">
                <div style="border: 1px black solid;background-color:#727075;width:30px;height:30px;float:left;margin-right:5px;"></div>No record of course taken this term
            </div>
            <div style="display:block;margin-bottom:10px;height:30px;">
                <div style="border: 1px black solid;background-color:#000000;width:30px;height:30px;float:left;margin-right:5px;"></div>Course taken in different term
            </div>
        </div>
    </td>
</asp:Content>

<asp:Content ID="Content6" ContentPlaceHolderID="RadioButtons" Runat="Server">
<!-- This section of the page contains the radio buttons to select the view -->
    <table style="width:100%"><tr>
    <td style="width:30%;">
        <asp:RadioButtonList ID="ViewRadio" runat="server" AutoPostBack="true">
            <asp:ListItem Selected="True" Text="Graphical View"></asp:ListItem>
            <asp:ListItem Selected="False" Text="List View"></asp:ListItem>
        </asp:RadioButtonList>
    </td>
    <td style="width:70%;">
        <span style="color:Red;"><asp:Label ID="ViolationsLabel" runat="server"></asp:Label></span>
    </td>
    </tr></table>
</asp:Content>

<asp:Content ID="Content7" ContentPlaceHolderID="LowerRightButtons" Runat="Server">
<!-- This section of the page contains the lower right buttons -->
    <asp:Button ID="SaveButton" Text="Update Log" runat="server" OnClick = "SaveButton_Click" /><br />
    <asp:Button ID="PrintButton" Text="Print" runat="server" OnClick="PrintButton_Click" /><br />
    <asp:Button ID="HelpButton" Text="Help" runat="server" onclick="HelpButton_Click" />
</asp:Content>
